
function BG{
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(1,1);
	SetAlpha(220);
	SetGraphicAngle(0,0,BGn/2);
        SetTexture(imgBG2);
	DrawGraphic(GetX,GetY);
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(1,1);
	SetAlpha(200);
	SetGraphicAngle(0,0,-BGn);
        SetTexture(imgBG1);
	DrawGraphic(GetX,GetY);
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(0.6+sin(BGn)*0.2,0.6+sin(BGn)*0.2);
	SetAlpha(170);
	SetGraphicAngle(0,0,BGn);
        SetTexture(imgBG1);
	DrawGraphic(GetX,GetY);
}

